from django.contrib import admin
from .models import *


# class MusicDetailAdmin(admin.ModelAdmin):
#     pass

@admin.register(OneMusicCreate)
class OneMusicCreateAdmin(admin.ModelAdmin):

    def singer(self, obj):
        return [si.singer for si in obj.singer.all()]

    list_display = ['song_name', 'singer', 'duration']
    search_fields = ['song_name', 'singer', 'duration']


@admin.register(MusicStyle)
class MusicStyleAdmin(admin.ModelAdmin):
    pass

@admin.register(MusicScene)
class MusicSceneAdmin(admin.ModelAdmin):
    pass

@admin.register(MusicEmotion)
class MusicEmotionAdmin(admin.ModelAdmin):
    pass

@admin.register(MusicTheme)
class MusicThemeAdmin(admin.ModelAdmin):
    pass

@admin.register(MusicSinger)
class MusicSingerAdmin(admin.ModelAdmin):
    pass

@admin.register(MusicCompose)
class MusicComposeAdmin(admin.ModelAdmin):
    pass

@admin.register(MusicAlbum)
class MusicAlbumAdmin(admin.ModelAdmin):
    pass

@admin.register(MusicLyricist)
class MusicLyricistAdmin(admin.ModelAdmin):
    pass

# admin.site.register(OneMusicCreate, OneMusicCreateAdmin)
# admin.site.register(MusicStyle, MusicStyleAdmin)
# admin.site.register(MusicScene, MusicSceneAdmin)
# admin.site.register(MusicEmotion, MusicEmotionAdmin)
# admin.site.register(MusicTheme, MusicThemeAdmin)
# admin.site.register(MusicSinger, MusicSingerAdmin)
# admin.site.register(MusicAlbum, MusicAlbumAdmin)
# admin.site.register(MusicCompose, MusicComposeAdmin)
# admin.site.register(MusicLyricist, MusicLyricistAdmin)